//
//  HWTopicDetailViewController.swift
//  HWanGame
//
//  Created by Apple on 2024/8/23.
//  Copyright © 2024 94Wan. All rights reserved.
//

import UIKit
import Stevia

class HWTopicDetailViewController: HWBaseViewController {

    private let backButton = c_make_ex(UIButton.self)
        .image("new_blackBack").end()
    private let topView = HWTopicDetailTopView()
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        navigationView.isHidden = true
        view.backgroundColor = "#F7F8FA".toColor
        
        view.subviews{
            backButton
            
        }
        
        topView.frame = CGRect(x: 0, y: 0, width: .screenWidth, height: 38*widthScale)
        backButton.leading(16*widthScale).top(.statusHeight+16*widthScale).size(24*widthScale)
        
        backButton.addTarget(self, action: #selector(clickBackButton), for: .touchUpInside)
    }
    

    @objc private func clickBackButton(){
        self.navigationController?.popViewController(animated: true)
    }
}
